package com.jchen.elasticsearch.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jchen.elasticsearch.config.SearchIndexConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description ES查询返回实体
 * @Author jchen
 * @Date 2023/12/22 10:10
 */
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class SysUserEsRes extends BaseRes{

    private Integer age;
    private Double Balance;
    private Boolean enabled;
    private String name;

    @Override
    public String getSearchIndexTag() {
        return SearchIndexConfig.IndexEnum.USER.name();
    }
}
